package com.facade;

import java.io.Serializable;
import java.util.List;

import com.dao.CountryDAO;
import com.model.Country;

public class CountryFacade implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private CountryDAO countryDAO = new CountryDAO();
	
	public List<Country> listAll() {
		countryDAO.beginTransaction();
		List<Country> result = countryDAO.findAll();
		countryDAO.closeTransaction();
		return result;
	}

}
